package user_center;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import user_center.user.mapper.SystemUserMapper;
import user_center.user.pojo.SystemUser;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Ezio.Auditore
 * Date: 2022-08-24
 * Time: 14:10
 */
@SpringBootTest
public class testPage {
    @Autowired
    SystemUserMapper systemUserMapper;

    @Test
    public void page() {
        IPage page = new Page(1, 2);
        IPage iPage = systemUserMapper.selectPage(page, null);
        System.out.println(JSON.toJSONString(iPage));
    }
}
